package com.lnsf.bookstore.web.coupon.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lnsf.bookstore.web.coupon.dao.ApiCouponMapper;
import com.lnsf.bookstore.web.coupon.service.ApiCouponService;
import com.lnsf.bookstore.web.coupon.vo.ApiCoupon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiCouponServiceImpl implements ApiCouponService{

    @Autowired
    private ApiCouponMapper apiCouponMapper;

    @Override
    public List<ApiCoupon> queryAll(Map<String, Object> params) {
        return apiCouponMapper.selectAll(params);
    }

    @Override
    public List<ApiCoupon> queryUserCouponList(Map<String, Object> params) {
        return apiCouponMapper.queryUserCouponList(params);
    }
}
